package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.UmsMemberReceiveAddressMapper;
import org.code.mallspringboot.pojo.UmsMemberReceiveAddress;
import org.code.mallspringboot.service.UmsMemberReceiveAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class UmsMemberReceiveAddressServiceImpl implements UmsMemberReceiveAddressService{

    @Autowired
    private UmsMemberReceiveAddressMapper umsMemberReceiveAddressMapper;

    @Override
    public List<UmsMemberReceiveAddress> selectByMemberId(int memberId) {
        return umsMemberReceiveAddressMapper.selectByMemberId(memberId);
    }

    @Override
    public int delete(int id) {
        return umsMemberReceiveAddressMapper.delete(id);
    }

    @Override
    public int add(UmsMemberReceiveAddress umsMemberReceiveAddress) {
        return umsMemberReceiveAddressMapper.add(umsMemberReceiveAddress);
    }

    @Override
    public UmsMemberReceiveAddress fetchAddressDetail(int id) {
        return umsMemberReceiveAddressMapper.fetchAddressDetail(id);
    }

    @Override
    public int updateAddress(UmsMemberReceiveAddress umsMemberReceiveAddress) {
        return umsMemberReceiveAddressMapper.updateAddress(umsMemberReceiveAddress);
    }
}




